<?php echo sfYaml::dump(array(
    'error'       => array(
        'code'      => $code,
        'message'   => $message,
))) ?>